﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MoetutuServer.WebSite.Pixiv
{
    class PixivJson
    {
        public class Illust_content_type
        {
            /// <summary>
            /// Sexual
            /// </summary>
            public int sexual { get; set; }
            /// <summary>
            /// Lo
            /// </summary>
            public bool lo { get; set; }
            /// <summary>
            /// Grotesque
            /// </summary>
            public bool grotesque { get; set; }
            /// <summary>
            /// Violent
            /// </summary>
            public bool violent { get; set; }
            /// <summary>
            /// Homosexual
            /// </summary>
            public bool homosexual { get; set; }
            /// <summary>
            /// Drug
            /// </summary>
            public bool drug { get; set; }
            /// <summary>
            /// Thoughts
            /// </summary>
            public bool thoughts { get; set; }
            /// <summary>
            /// Antisocial
            /// </summary>
            public bool antisocial { get; set; }
            /// <summary>
            /// Religion
            /// </summary>
            public bool religion { get; set; }
            /// <summary>
            /// Original
            /// </summary>
            public bool original { get; set; }
            /// <summary>
            /// Furry
            /// </summary>
            public bool furry { get; set; }
            /// <summary>
            /// Bl
            /// </summary>
            public bool bl { get; set; }
            /// <summary>
            /// Yuri
            /// </summary>
            public bool yuri { get; set; }
        }

        public class Contents
        {
            /// <summary>
            /// ポニテ紅葉さん
            /// </summary>
            public string title { get; set; }
            /// <summary>
            /// 2018年01月27日 00:11
            /// </summary>
            public DateTime date { get; set; }
            /// <summary>
            /// Tags
            /// </summary>
            public List<string> tags { get; set; }
            /// <summary>
            /// https://i.pximg.net/c/240x480/img-master/img/2018/01/27/00/11/56/66979579_p0_master1200.jpg
            /// </summary>
            public string url { get; set; }
            /// <summary>
            /// 0
            /// </summary>
            public string illust_type { get; set; }
            /// <summary>
            /// 0
            /// </summary>
            public string illust_book_style { get; set; }
            /// <summary>
            /// 图片数量
            /// </summary>
            public int illust_page_count { get; set; }
            /// <summary>
            /// 七瀬尚＠お仕事募集中
            /// </summary>
            public string user_name { get; set; }
            /// <summary>
            /// https://i.pximg.net/user-profile/img/2017/09/30/00/14/10/13285230_342ca3224686f0b809b666945b08239a_50.jpg
            /// </summary>
            public string profile_img { get; set; }
            /// <summary>
            /// Illust_content_type
            /// </summary>
            public Illust_content_type illust_content_type { get; set; }
            /// <summary>
            /// Illust_series
            /// </summary>
            public bool illust_series { get; set; }
            /// <summary>
            /// Illust_id
            /// </summary>
            public int illust_id { get; set; }
            /// <summary>
            /// Width
            /// </summary>
            public int width { get; set; }
            /// <summary>
            /// Height
            /// </summary>
            public int height { get; set; }
            /// <summary>
            /// User_id
            /// </summary>
            public int user_id { get; set; }
            /// <summary>
            /// Rank
            /// </summary>
            public int rank { get; set; }
            /// <summary>
            /// Yes_rank
            /// </summary>
            public int yes_rank { get; set; }
            /// <summary>
            /// 评分
            /// </summary>
            public int rating_count { get; set; }
            /// <summary>
            /// 查看数
            /// </summary>
            public int view_count { get; set; }
            /// <summary>
            /// Illust_upload_timestamp
            /// </summary>
            public int illust_upload_timestamp { get; set; }
            /// <summary>
            /// original
            /// </summary>
            public string attr { get; set; }
            /// <summary>
            /// Is_bookmarked
            /// </summary>
            public bool is_bookmarked { get; set; }
            /// <summary>
            /// Bookmarkable
            /// </summary>
            public bool bookmarkable { get; set; }
        }

        public class Root
        {
            /// <summary>
            /// Contents
            /// </summary>
            public List<Contents> contents { get; set; }
   
        }

    }
}
